<div class="avisos index">
<h2><?php __('Tablon de Avisos');?></h2>
<br />
<br />
<?php
//echo $paginator->counter(array('format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%',true)
//));
?>
<table cellpadding="0" cellspacing="0">

<?php 
$i = 0;
foreach ($avisos as $aviso):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td>
			<?php echo $html->link('<h2>'.$aviso['Aviso']['titulo'].'</h2>','/avisos/view/'.$aviso['Aviso']['id'],null,null,false);?>
			<hr/>
			<p>Autor: <?php echo $aviso['Usuario']['nombre'];?></p>
			<p>Publicado el: <?php echo $aviso['Aviso']['fecha'];?></p>
			<hr/>
			<p><?php echo $aviso['Aviso']['contenido'];?></p>
		</td>
	</tr>
	<tr>
		<td class="actions">
			<?php echo $html->link(__('View', true), array('action' => 'view', $aviso['Aviso']['id'])); ?>
			<?php echo $html->link(__('Edit', true), array('action' => 'edit', $aviso['Aviso']['id'])); ?>
			<?php echo $html->link(__('Delete', true), array('action' => 'delete', $aviso['Aviso']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $aviso['Aviso']['id'])); ?>
			<br /><br />
		</td>
	</tr>
	
<?php endforeach; ?>
</table>

</div>
<!--<div class="paging">
	<?php //echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php //echo $paginator->numbers();?>
	<?php //echo $paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
</div>-->

<div class="actions">
	<ul>
		<li><?php echo $html->link(__('New Aviso', true), array('action' => 'add')); ?></li>
	</ul>
</div>
